public class BreakAndContinue {
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            if (i == 7) {
                break; // Exit when i == 7
            }
            if (i == 4) {
                continue; // Skip the rest of the loop body
            }
            System.out.print(i + " ");
        }
        System.out.println();

        int i = 0;
        while (true) {
            i++;
            int j = i * 27;
            if (j == 270) {
                break;
            }
            if (j % 4 == 0) {
                continue;
            }
            System.out.println(i + " " + j);
        }
    }
}
